package org.csu.webjpetstoreback.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.csu.webjpetstoreback.config.CommonResponse;
import org.csu.webjpetstoreback.model.Product;

import java.util.List;

public interface ProductService extends IService<Product> {
    public  CommonResponse<List<Product>> GetProductsListById(String productId);

    public CommonResponse<Product> PostProducts(Product products);

    public CommonResponse<Product> PutProducts(Product products);

    public CommonResponse<Product> DeleteProducts(int productId);


    public  CommonResponse<List<Product>> GetProductsListByCategory(String CategoryId);

    public  CommonResponse<Product> GetProductByProductId(String ProductId);

    public  CommonResponse<List<Product>> GetProductListByKeywords(String Keywords);


}
